package com.ruoyi.project.mapper;

import java.util.List;

import com.ruoyi.common.core.domain.model.TreeNode;
import com.ruoyi.project.domain.ProjectRecovery;

/**
 * 工程复盘目录Mapper接口
 * 
 * @author ruoyi
 * @date 2024-07-12
 */
public interface ProjectRecoveryMapper 
{
    /**
     * 查询工程复盘目录
     * 
     * @param recoveryId 工程复盘目录主键
     * @return 工程复盘目录
     */
    public ProjectRecovery selectProjectRecoveryByRecoveryId(Long recoveryId);

    /**
     * 查询工程复盘目录列表
     * 
     * @param projectRecovery 工程复盘目录
     * @return 工程复盘目录集合
     */
    public List<ProjectRecovery> selectProjectRecoveryList(ProjectRecovery projectRecovery);

    /**
     * 新增工程复盘目录
     * 
     * @param projectRecovery 工程复盘目录
     * @return 结果
     */
    public int insertProjectRecovery(ProjectRecovery projectRecovery);

    /**
     * 修改工程复盘目录
     * 
     * @param projectRecovery 工程复盘目录
     * @return 结果
     */
    public int updateProjectRecovery(ProjectRecovery projectRecovery);

    /**
     * 删除工程复盘目录
     * 
     * @param recoveryId 工程复盘目录主键
     * @return 结果
     */
    public int deleteProjectRecoveryByRecoveryId(Long recoveryId);

    /**
     * 批量删除工程复盘目录
     * 
     * @param recoveryIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteProjectRecoveryByRecoveryIds(Long[] recoveryIds);

    List<ProjectRecovery> getTree(Long projectId);

    Long selectNameByProjectRecovery(ProjectRecovery projectRecovery);

    Long getIdByPid(Long recoveryId);

    Long getIdByProjectRecoveryDetail(Long recoveryId);
}
